package com.redis.controller;

import com.redis.service.RedisServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedHashMap;

/**
 * @author ：hyq
 * @date ：Created in 2020/7/17 14:15
 * @description：
 * @modified By：
 */

@RestController
public class RedisLimit {

    @Autowired
    RedisServer redisServer;

    @GetMapping("/test2")
    public void redisLimit(){
        LinkedHashMap map = new LinkedHashMap();
        boolean b = redisServer.getRedisLimit("BUSmit",3,1);
        if(b){
            System.out.println("来了啊");
        }else{
            System.out.println("bulai");
        }
    }

}
